package com.mew.lobby.message.request;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;

/**
 * @author dylin
 * @create 2021/3/31
 */
@Data
public class BindTelephoneRequestMessage  extends ZebraBaseMessage<BindTelephoneRequestMessage> {
    private String telephone;//手机号码
    private String authCode;//验证码
    @Override
    public void write(ByteBuf byteBuf) {

    }

    @Override
    public BindTelephoneRequestMessage read(ByteBuf b) {
        BindTelephoneRequestMessage message=new BindTelephoneRequestMessage();
        message.telephone=readString(b);
        message.authCode=readString(b);
        return message;
    }
}
